package com.gxgy.app.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gxgy.app.doman.dto.OrderDto;
import com.gxgy.app.doman.po.Order;
import com.gxgy.app.doman.vo.OrderVo;

import java.util.List;

public interface OrderService extends IService<Order> {

    boolean downOrder(OrderDto orderDto);

    List<OrderVo> getOrderListByUserId(Long userId);

    List<OrderVo> getOrderListByUserIdAndStatus(Long userId, Long[] status);

    /**
     * 修改订单的方法
     */
    boolean updateOrder(Order order);
}
